package com.kalvan.system.iface;

import com.kalvan.core.response.Result;
import com.kalvan.system.constant.SystemReturnCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 更新字典缓存
 *
 * @author chenliang
 */
@FeignClient(name = SystemReturnCode.APPLICATION_NAME, contextId = "IDictCacheUpdate")
public interface IDictCacheUpdate {

    /**
     * 清理字典缓存缓存
     *
     * @param dictType 字典类型
     * @return Result
     */
    @RequestMapping(value = "clearDictCache", method = RequestMethod.POST)
    Result clearDictCache(@RequestParam(value = "dictType", required = false) String dictType);
}
